package com.mc.fil.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.mc.common.annotation.Excel;
import com.mc.common.core.domain.BaseEntity;

/**
 * 多媒体对象 fil_multimedia
 *
 * @author mc
 * @date 2021-04-15
 */
public class FilMultimedia extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 上传人 */
    @Excel(name = "上传人")
    private String createdBy;

    /** 上传时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 路径 */
    @Excel(name = "路径")
    private String path;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 文件名 */
    @Excel(name = "文件名")
    private String fileName;

    /** 编号 */
    @Excel(name = "编号")
    private Long filId;

    private String genre;

    private List<FilMultimedia> photos;

    public List<FilMultimedia> getPhotos() {
        return photos;
    }

    public void setPhotos(List<FilMultimedia> photos) {
        this.photos = photos;
    }

    public String getGenre() {
        return genre;
    }

    public void setGenre(String genre) {
        this.genre = genre;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCreatedBy(String createdBy)
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy()
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime)
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime()
    {
        return createdTime;
    }
    public void setPath(String path)
    {
        this.path = path;
    }

    public String getPath()
    {
        return path;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setFileName(String fileName)
    {
        this.fileName = fileName;
    }

    public String getFileName()
    {
        return fileName;
    }
    public void setFilId(Long filId)
    {
        this.filId = filId;
    }

    public Long getFilId()
    {
        return filId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("createdBy", getCreatedBy())
                .append("createdTime", getCreatedTime())
                .append("path", getPath())
                .append("type", getType())
                .append("fileName", getFileName())
                .append("filId", getFilId())
                .append("photos", getPhotos())
                .toString();
    }
}